package lab2.text19;

/**
 * Created by Administrator on 2017/10/30.
 */
public class Text {
    public static void main(String[] args) {
                String s = "HelloWorld";
                StringBuffer buf = new StringBuffer();
                for(int i = s.length()-1 ; i>=0;i--){
                        char c = s.charAt(i);
                        if(Character.isLowerCase(c)){
                                buf.append(String.valueOf(c).toUpperCase());
                            }else{
                                buf.append(String.valueOf(c).toLowerCase());
                            }
                    }
                System.out.println(buf.toString());
            }
}
